{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $url_split := split $url "/"}}
{{ $.Scratch.Set "path" "/" }}
{{ $path_parrent := $.Scratch.Get "parrent" }}
<ol class="breadcrumb">
    <li><a href="/">Home</a></li>
    {{ range $index, $element := split $path_parrent "/" }}
        {{ $.Scratch.Add "path" $element }}
        {{ if ne $element "" }}
            <li><a href="{{ $.Scratch.Get "path" }}/">{{ replace (replace (title .) "-" " ") "_" " " }}</a></li>
            {{ $.Scratch.Add "path" "/" }}
        {{ end }}
    {{ end }}
    <li><a href="/{{ $url }}">{{ replace (replace (title (index $url_split (sub (len $url_split) 2))) "-" " ") "_" " " }}</a></li>
</ol>
